/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.creational.prototype_pattern.Impl;

import com.kleintjes.creational.prototype_pattern.Prototype;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class Dog implements Prototype {
    String sound;
    
    public Dog(String sound) {
        this.sound = sound;
    }
    
    @Override
    public Prototype doClone() {
        return new Dog(sound);
    }
    
    @Override
    public String toString() {
        return "This dos says "+sound;
    }
    
}
